from django.db import models

# Create your models here.

class UserProfile(models.Model):
    username = models.CharField('姓名', max_length=50, primary_key=True)
    nickname = models.CharField('昵称', max_length=50)
    email = models.EmailField()
    password = models.CharField(max_length=32)
    sign = models.CharField('个人签名', max_length=50, default='')
    info = models.CharField('个人描述', max_length=150, default='')
    avatar = models.ImageField(upload_to='avatar', null=True)
    create_time = models.DateTimeField(auto_now_add=True)
    update_time = models.DateTimeField(auto_now=True)
    phone = models.CharField(max_length=11, default='')
